luci-base: give TextValue form elements separate readonly and disabled
authorPaul Donald <[email protected]>
Thu, 3 Jul 2025 15:11:27 +0000 (17:11 +0200)
committerPaul Donald <[email protected]>
Thu, 3 Jul 2025 15:11:27 +0000 (17:11 +0200)
commitb9145754d2bc5af0f7448a8c6d5e709ab8b28b91
treeb5896618aaf1fbe23bebe32fcffc88227ae93a67
parent01201eefe7749963820d9eb9b41baa289e24c3c7
luci-base: give TextValue form elements separate readonly and disabled

textarea widgets have more value as readonly and not disabled, than
just disabled: you can scroll through them when they're readonly and
not disabled.

So give the form element separate readonly and disabled properties, so
textarea elements defined as readonly with a large amount of content
still cannot be modified, but at least the whole content can be viewed
(because the textarea scrollbars still function).

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/form.js